<?php

namespace app\beautiful\model\partner;

use app\common\model\CommonModel;




class PartnerShareModel extends CommonModel{

    protected  $name = 'beautiful_partner_share';

    protected  $pk   = 'partner_share_id';
    
    public static function onBeforeInsert($model)
    {
        $model->set("add_time", date('Y-m-d H:i:s'));
        $model->set("add_ip", request()->ip());
    }


}

